package com.dragon.modules.yuegou.model.merchant;

import com.dragon.modules.yuegou.entity.merchant.MerchantSalesMonthEntity;
import com.dragon.modules.yuegou.enums.merchant.MerchantSalesMonthSource;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 商铺销售额按月模型类
 * 
 * @author pbuilder generated
 * @date 2019-07-11 14:42:53
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class MerchantSalesMonth extends MerchantSalesMonthEntity {

	@ApiModelProperty("商户名称")
	private String merchantName;

	@ApiModelProperty("铺位号")
	private String merchantCode;

	@ApiModelProperty("月份")
	private String monthStr;

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}

	public String getMerchantCode() {
		return merchantCode;
	}

	public void setMerchantCode(String merchantCode) {
		this.merchantCode = merchantCode;
	}

	public String getMonthStr() {
		return monthStr;
	}

	public void setMonthStr(String monthStr) {
		this.monthStr = monthStr;
	}

	/**
	 * 构造一个空商铺销售额按月模型对象
	 */
	public MerchantSalesMonth(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商铺销售额按月模型对象
	 * 
	 * @param entity 实体对象
	 */
	public MerchantSalesMonth(MerchantSalesMonthEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商铺销售额按月模型对象
	 * 
	 * @param other 其它对象
	 */
	public MerchantSalesMonth(MerchantSalesMonth other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public MerchantSalesMonth id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 * @return 当前对象
	 */
    public MerchantSalesMonth busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public BigDecimal getSalesBudget() {
    	return salesBudget;
    }

    /**
	 * 设置销售预算
	 * 
	 * @param salesBudget 销售预算
	 * @return 当前对象
	 */
    public MerchantSalesMonth salesBudget(BigDecimal salesBudget) {
    	this.salesBudget = salesBudget;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商户id
	 * 
	 * @param merchantId 商户id
	 * @return 当前对象
	 */
    public MerchantSalesMonth merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public LocalDateTime getStatisticalTime() {
    	return statisticalTime;
    }

    /**
	 * 设置统计时间
	 * 
	 * @param statisticalTime 统计时间
	 * @return 当前对象
	 */
    public MerchantSalesMonth statisticalTime(LocalDateTime statisticalTime) {
    	this.statisticalTime = statisticalTime;
    	return this;
    }

	@Override
	public BigDecimal getRentalManageFee() {
    	return rentalManageFee;
    }

    /**
	 * 设置租金及管理费
	 * 
	 * @param rentalManageFee 租金及管理费
	 * @return 当前对象
	 */
    public MerchantSalesMonth rentalManageFee(BigDecimal rentalManageFee) {
    	this.rentalManageFee = rentalManageFee;
    	return this;
    }

	@Override
	public MerchantSalesMonthSource getSource() {
    	return source;
    }

    /**
	 * 设置[枚举]来源：0-后台导入-CRM、1-后台抓取-MINIAPP
	 * 
	 * @param source [枚举]来源：0-后台导入-CRM、1-后台抓取-MINIAPP
	 * @return 当前对象
	 */
    public MerchantSalesMonth source(MerchantSalesMonthSource source) {
    	this.source = source;
    	return this;
    }

	@Override
	public Boolean getIsCount() {
    	return isCount;
    }

    /**
	 * 设置是否任务统计，0表示未统计, 1表示已统计
	 * 
	 * @param isCount 是否任务统计，0表示未统计, 1表示已统计
	 * @return 当前对象
	 */
    public MerchantSalesMonth isCount(Boolean isCount) {
    	this.isCount = isCount;
    	return this;
    }

	@Override
	public LocalDate getMonth() {
    	return month;
    }

    /**
	 * 设置月份
	 * 
	 * @param month 月份
	 * @return 当前对象
	 */
    public MerchantSalesMonth month(LocalDate month) {
    	this.month = month;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public MerchantSalesMonth del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public MerchantSalesMonth createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人
	 * 
	 * @param createdBy 创建人
	 * @return 当前对象
	 */
    public MerchantSalesMonth createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置修改时间
	 * 
	 * @param modifiedTime 修改时间
	 * @return 当前对象
	 */
    public MerchantSalesMonth modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置修改人
	 * 
	 * @param modifiedBy 修改人
	 * @return 当前对象
	 */
    public MerchantSalesMonth modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }
}
